package com.example.demo.controller;


import com.example.demo.entity.CertificateEneity;
import com.example.demo.result.Result;
import com.example.demo.service.impl.CertificateServiceImpl;
import com.example.demo.util.QRCodeUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CertificateConrtoller {

    @Autowired
    private CertificateServiceImpl certificateService;


    //制证
     @RequestMapping("/certificate")
     public Result certificate(@RequestBody CertificateEneity certificateEneity){

         return certificateService.certificate(certificateEneity.getSerialNumber(),certificateEneity.getOperator());
     }
     //查询证件信息
//    @RequestMapping("/querying")
//     public Result queryCertificate(String  id){
//         return certificateService.queryCertificate(id);
//     }
}
